package com.hanscan.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;

@Entity
@Table(name = "identificationformats")
@SequenceGenerator(name = "identificationGen", sequenceName = "identificationGen",
allocationSize = 1)
@NamedQueries(
{
    @NamedQuery(name = "getAllIdentificationFormats",
    query = "SELECT u FROM IdentificationFormat u"),
    @NamedQuery(name = "findIdentificationFormatById",
    query = "SELECT u FROM IdentificationFormat u " +
    "WHERE u.idIdFormat=?1")
})
public class IdentificationFormat implements Serializable
{

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE,
    generator = "identificationGen")
    @Column(nullable = false)
    private Long idIdFormat;
    @Column(nullable = false)
    private byte idformatvalue;
    private String description;

    public IdentificationFormat()
    {
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public Long getIdIdFormat()
    {
        return idIdFormat;
    }

    public void setIdIdFormat(Long idIdFormat)
    {
        this.idIdFormat = idIdFormat;
    }

    public byte getIdformatvalue()
    {
        return idformatvalue;
    }

    public void setIdformatvalue(byte idformatvalue)
    {
        this.idformatvalue = idformatvalue;
    }

}
